package com.uni.service.impl;


import com.uni.common.util.PageBean;
import com.uni.entity.OverseasRealEstate;
import com.uni.mapper.OverseasRealEstateMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.xml.ws.Action;
import java.util.List;

@Service
public class OverseasRealEstateService {
    @Autowired
    private OverseasRealEstateMapper overseasRealEstateMapper;

    public List<OverseasRealEstate> findList(PageBean<OverseasRealEstate> pageBean){
        return overseasRealEstateMapper.findList(pageBean);
    }

    public int countList(PageBean<OverseasRealEstate> pageBean){
        return overseasRealEstateMapper.countList(pageBean);
    }

    public Integer insert(OverseasRealEstate overseasRealEstate){
        return overseasRealEstateMapper.insert(overseasRealEstate);
    }

    public Integer update(OverseasRealEstate overseasRealEstate){
        return overseasRealEstateMapper.update(overseasRealEstate);
    }
    public Integer delete(List<String> ids){
        return overseasRealEstateMapper.delete(ids);
    }
}
